<div class="acos index">
	<h2><?php echo __d('acos','Acos');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo __d('acos','Id',true);?></th>
			<th><?php echo __d('acos','Event',true);?></th>
			<th><?php echo __d('acos','User type',true);?></th>
			<th><?php echo __d('acos','Action',true);?></th>
			<th><?php echo __d('acos','Access',true);?></th>
			<th class="actions"><?php echo __d('acos','Actions');?></th>
	</tr>
	<?php
	foreach ($acos as $aco): ?>
	<tr>
		<?php echo $this->Form->create('Aco',array('url'=>array('controller'=>'acos', 'actoions'=>'index'),'name'=>'_aco_'.$aco['Aco']['id']));?>
		<td>
			<?php 
				echo h($aco['Aco']['id']);
				echo $this->Form->hidden('aco_id',array('value'=>$aco['Aco']['id']));
			?></td>
		<td><?php echo h($aco['Aco']['alias']); ?></td>
		<td><?php echo $this->Form->input('group_id',array('options'=>$groups,'label'=>false,'div'=>false,'empty'=>''))?></td>
		<td><?php echo $this->Form->input('action_id',array('options'=>$actions,'label'=>false,'div'=>false,'empty'=>''))?></td>
		<td><?php echo $this->Form->input('access',array('options'=>array('1'=>__d('acos','Allow',true),'0'=>__d('acos','Deny',true)),'label'=>false,'div'=>false,'empty'=>''))?></td>
		<td class="actions">
			<?php echo $this->Html->link(__d('acos','Submit'), '#',array('onclick'=>'if (confirm("'.__d('acos',"Are you sure you want to change right for this?",true).'")) { document._aco_'.$aco['Aco']['id'].'.submit(); } event.returnValue = false; return false;')); ?>
			<?php echo $this->Html->link(__d('acos','Edit'), array('action' => 'edit', $aco['Aco']['id'])); ?>
			<?php echo $this->Form->postLink(__d('acos','Delete'), array('action' => 'delete', $aco['Aco']['id']), null, __d('acos','Are you sure you want to delete # %s?', $aco['Aco']['id'])); ?>
		</td>
		<?php echo $this->Form->end();?>
	</tr>
<?php endforeach; ?>
	</table>

</div>
<?php echo $this->element('/menu/left')?>
